db.define_table('action',
    Field('action_type','string',required=True),
    Field('from_fbuid','integer',required=True),
    Field('from_name','string',required=True),
    Field('to_fbuid','integer',required=True),
    Field('to_name','string',required=True),
    Field('message','text',required=True),
    Field('viewed','boolean',required=True,default=False),
    Field('created_on','datetime',writable=False,default=request.now),
)
db.define_table('user',
    Field('fbuid','integer',required=True),
    Field('points','integer',required=False,default=None),
    Field('created_on','datetime',writable=False,default=request.now),    
    Field('offline_access','string',default=None),
    Field('last_activity_level','integer',required=True),
)
